<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>查看详情</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div class="doRefresh">查看详情</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>
<div class="wapper">
    <div class="module">
        <div id="content">
            <ul class="tradeList">
                <li>
                    <i class='icon-flight'></i>

                    <p class='price'>{$flightNo} | {$list.0.plane_model}</p>

                    <p class='price'>交易号 : <span class='flight-text-a5'>{$list.0.sequence_no}</span></p>

                    <p class='price'>航程信息：<span class='flight-text-a5'>{$list.0.dep_code|codeToAirport} - {$list.0.arr_code|codeToAirport}</span>
                    </p>

                    <p class='price'>起降时间：<span class='flight-text-a5'>{$list.0.dep_date} {$list.0.dep_time|returnTime} -- {$list.0.dep_date} {$list.0.arr_time|returnTime}</span>
                    </p>

                    <p class='price'>票面价：<span class='flight-text-a5'><dfn>&yen;{$price_total|getYuan}
                        {$detail}</dfn></span></p>

                    <p class='price'>订单时间：<span class='flight-text-a5'>{$list.0.create_time}</span></p>
                    <p class='price'>机票状态：<span style='color:#f08519'>
                        <if condition="$list[0]['state'] eq 1">
                            已提交
                            <elseif condition="$list[0]['state'] eq 2"/>
                            已付款,待出票
                            <elseif condition="$list[0]['state'] eq 3"/>
                            已出票
                            <elseif condition="$list[0]['state'] eq 4"/>
                            已取消
                            <elseif condition="$list[0]['state'] eq 5"/>
                            已退票,退票成功
                            <elseif condition="$list[0]['state'] eq 6"/>
                            出票失败
                            <elseif condition="$list[0]['state'] eq 7"/>
                            预定失败
                            <elseif condition="$list[0]['state'] eq 8"/>
                            退票失败
                            <elseif condition="$list[0]['state'] eq 9"/>
                            退票中,待退款
                            <elseif condition="$list[0]['state'] eq 10"/>
                            有取消
                            <elseif condition="$list[0]['state'] eq 11"/>
                            有退票
                            <elseif condition="$list[0]['state'] eq 12"/>
                            已删除
                            <elseif condition="$list[0]['state'] eq 14"/>
                            已预定,待付款
                            <elseif condition="$list[0]['state'] eq 15"/>
                            已预定,付款中
                        </if>
                    </span></p>
                </li>

                {$html}
            </ul>
        </div>

    </div>
    <div style="margin-top: 10px;margin-bottom: 10px;margin-right: 5px;float:right">
        <input type="hidden" id="orderCancel" value="{:U('WxJsAPI/orderCancel')}">
        <input type="hidden" id="sequence_no" value="{$list.0.sequence_no}">
        <if condition="$list[0]['state'] eq 14">
            <a href="javascript:void(0)" class="orderCancel" style="margin-right: 10px;">
                <input type='button' class='btn btn-danger' value='取消订单'>
            </a>
        </if>

        <!--<if condition="($depDate gt $date) and ($list[0]['state'] eq 14)">
            <a href="{:U('WxJsAPI/jsApiCall', array('fid' => $id))}">
                <input type='button' class='btn btn-success' value='支付订单'>
            </a>
        </if>-->

        <if condition="$list[0]['state'] eq 1">
            <a href="{:U('WxJsAPI/deleteOrder', array('id' => $id))}" style="margin-left: 10px;">
                <input type='button' class='btn btn-danger' value='删除订单'>
            </a>
        </if>
    </div>

</div>
<footer class="footer" style="margin-top:55px;">
    <include file="Template/foot"/>
</footer>

<div class="modal fade popWin bs-example-modal-sm" id="myModalSuc" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">温馨提示</h4>
            </div>
            <div class="modal-body text-center">
                <p class="tipsBox"><span class="suc"></span></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning doSubmit" data-dismiss="modal" aria-label="Close">确认
                </button>
                <button type="button" class="btn btn-default doReset" data-dismiss="modal" aria-label="Close">取消
                </button>
            </div>
        </div>
    </div>
</div>

</body>
</html>
